﻿using System;
using System.Collections.Generic;
using System.Linq;
using sscore;

namespace DM4
{
    public static class LogConsts
    {
        public const string ModuleCode = "DMN_Log";
    }

    public static class LogCommands
    {
        public const string InsertLog = "INSERT";
        public const string SelectLog = "SELECT";
    }

    public class LogParameters
    {
        public readonly LogType logType;

        public readonly MessageType messType;
        public readonly string modCode;
        public readonly string sessId;
        public readonly int usrId;
        public readonly string message;

        public LogParameters(LogType logType, string sessId, MessageType messType, string modCode, int usrId, string message)
        {
            this.logType = logType;
            this.messType = messType;
            this.modCode = modCode;
            this.sessId = sessId;
            this.usrId = usrId;
            this.message = message;
        }
    }

    //public enum LogMessageType { 
    //    Info = 0, 
    //    Warning, 
    //    Error, 
    //    Complete 
    //};

    public enum LogType { 
        Error = 0,
        General, 
        Test,
        System,
        Daemons
    };
    
}
